# -*- coding: utf-8 -*-
"""
@Time    : 2024/10/10 10:44 
@Author  : ZhangShenao 
@File    : download.py 
@Desc    : 文件下载
"""
import os
import random
import time


def download_file(filename: str) -> None:
    """下载文件"""

    print(f"【进程-{os.getpid()}】开始下载 {filename} ...")
    time.sleep(random.randint(5, 10))
    print(f"【进程-{os.getpid()}】{filename} 下载完成！")
